package com.kma.summer2012.shared.model;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Naskrina
 * Date: 02.02.13
 * Time: 19:00
 * To change this template use File | Settings | File Templates.
 */
public class UICrumbsToolItem implements Serializable {


    private int id;
    private String toolName;
    private String toolsDescription;
    private List<String> workList;
    private boolean isDelete;

    public boolean isDelete() {
        return isDelete;
    }

    public void setDelete(boolean delete) {
        isDelete = delete;
    }


    public UICrumbsToolItem() {
        id = 0;
        toolName = "";
        toolsDescription = "";
        workList = new ArrayList<String>();
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getToolName() {
        return toolName;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    public List<String> getWorkList() {
        return this.workList;
    }

    public void setWorkList(List<String> list) {
        this.workList = list;
    }

    public String getWorksAsString() {

        String result = "";
        for (String work : this.getWorkList()) {
            result += work + "; ";
        }
        return result;
    }

    public String getToolsDescription() {
        return toolsDescription;
    }

    public void setToolsDescription(String toolsDescription) {
        this.toolsDescription = toolsDescription;
    }

}
